package com.wdzj.common.pojo;

/**
 * ZjpClassrcdInfoId entity. @author MyEclipse Persistence Tools
 */

public class ZjpClassrcdInfoId implements java.io.Serializable {

	// Fields

	private Integer stuId;
	private String couId;
	private String couwareId;
	private String lendate;

	// Constructors

	/** default constructor */
	public ZjpClassrcdInfoId() {
	}

	/** full constructor */
	public ZjpClassrcdInfoId(Integer stuId, String couId, String couwareId,
			String lendate) {
		this.stuId = stuId;
		this.couId = couId;
		this.couwareId = couwareId;
		this.lendate = lendate;
	}

	// Property accessors

	public Integer getStuId() {
		return this.stuId;
	}

	public void setStuId(Integer stuId) {
		this.stuId = stuId;
	}

	public String getCouId() {
		return this.couId;
	}

	public void setCouId(String couId) {
		this.couId = couId;
	}

	public String getCouwareId() {
		return this.couwareId;
	}

	public void setCouwareId(String couwareId) {
		this.couwareId = couwareId;
	}

	public String getLendate() {
		return this.lendate;
	}

	public void setLendate(String lendate) {
		this.lendate = lendate;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof ZjpClassrcdInfoId))
			return false;
		ZjpClassrcdInfoId castOther = (ZjpClassrcdInfoId) other;

		return ((this.getStuId() == castOther.getStuId()) || (this.getStuId() != null
				&& castOther.getStuId() != null && this.getStuId().equals(
				castOther.getStuId())))
				&& ((this.getCouId() == castOther.getCouId()) || (this
						.getCouId() != null && castOther.getCouId() != null && this
						.getCouId().equals(castOther.getCouId())))
				&& ((this.getCouwareId() == castOther.getCouwareId()) || (this
						.getCouwareId() != null
						&& castOther.getCouwareId() != null && this
						.getCouwareId().equals(castOther.getCouwareId())))
				&& ((this.getLendate() == castOther.getLendate()) || (this
						.getLendate() != null && castOther.getLendate() != null && this
						.getLendate().equals(castOther.getLendate())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getStuId() == null ? 0 : this.getStuId().hashCode());
		result = 37 * result
				+ (getCouId() == null ? 0 : this.getCouId().hashCode());
		result = 37 * result
				+ (getCouwareId() == null ? 0 : this.getCouwareId().hashCode());
		result = 37 * result
				+ (getLendate() == null ? 0 : this.getLendate().hashCode());
		return result;
	}

}